package com.ea.modular.model.sys;



import java.util.Date;

import com.ea.common.parent.model.DataModel;
/**
 * 用户管理Bean
 * @author jun
 *
 */
public class User extends DataModel<User> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String companyId;//归属公司
	private String officeId;//归属部门
	private String loginName;//登录名
	private String password;//密码
	private String no;//工号
	private String email;//邮箱
	private String name;//姓名
	private String phone;//电话
	private String photo;//头像
	private String useable;//登录状态
	private String officeName;//部门名称
	
	
	
	public String getOfficeName() {
		return officeName;
	}
	public void setOfficeName(String officeName) {
		this.officeName = officeName;
	}
	public String getCompanyId() {
		return companyId;
	}
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}
	public String getOfficeId() {
		return officeId;
	}
	public void setOfficeId(String officeId) {
		this.officeId = officeId;
	}
	

	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNo() {
		return no;
	}
	public void setNo(String no) {
		this.no = no;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPhoto() {
		return photo;
	}
	public void setPhoto(String photo) {
		this.photo = photo;
	}
	public String getUseable() {
		return useable;
	}
	public void setUseable(String useable) {
		this.useable = useable;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		setLogin_name(loginName);
		this.loginName = loginName;
	}
	@Override
	public String toString() {
		return "User [companyId=" + companyId + ", officeId=" + officeId + ", loginName=" + loginName + ", password="
				+ password + ", no=" + no + ", email=" + email + ", name=" + name + ", phone=" + phone + ", photo="
				+ photo + ", useable=" + useable + "]";
	}

	
	
   ///为排序准备字段
	private String login_name;
	private Date create_date;
	public String getLogin_name() {
		return login_name;
	}
	public void setLogin_name(String login_name) {
		this.login_name = login_name;
	}
	
	
	
	public Date getCreate_date() {
		return create_date;
	}
	public void setCreate_date(Date create_date) {
		this.create_date = create_date;
	}
	public void setCreateDate(Date createDate) {
		setCreate_date(createDate);
		this.createDate = createDate;
	}
	
	
	

}
